import { VuexModule, Module, Mutation, Action, getModule } from 'vuex-module-decorators'
import store from '@/store'

export interface MarkDownData {
  contentData: any;
}

@Module({ dynamic: true, store, name: 'markdown' })
class MarkDown extends VuexModule implements MarkDownData {
  public contentData: any = "";
  @Mutation
  private CHANGE_CONTENTDATA(data: any) {
    this.contentData = data;
  }

  @Action
  public changecontentData(contentData: any) {
    this.CHANGE_CONTENTDATA(contentData);
  }
}

export const MarkDownDataModule = getModule(MarkDown)
